import { Component, OnInit } from '@angular/core';
import { NavController } from '@ionic/angular';

@Component({
  selector: 'app-gaimi1',
  templateUrl: './gaimi1.page.html',
  styleUrls: ['./gaimi1.page.scss'],
})
export class Gaimi1Page implements OnInit {

  public password1:any;
  public password2:any;

  constructor(public navCtrl: NavController) { }

  ngOnInit() {
  }

  next() {
    // if (this.password1 == "") {
    //   alert("请输入账号");
    // } else if (this.password2 == "") {
    //     alert("请输入密码");
    // } else {
        let password: string = '用户名：' + this.password1 + '密码：' + this.password2;
        // alert(password);
        // this.router.navigate(['/login/'])
        this.navCtrl.navigateRoot('/login')
    // }
  }

}
